package com.lanou.pianke.search.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.List;

@Document(indexName = "acomment",type = "acomment")
public class ArticleComment {
    //文章评论id
    @Id
    private Long acommentId;
    //文章评论页面id
    private String acomid;
    //文章页面id
    private String contentId;
    //文章评论时间
    private Integer acommentTime;
    //文章评论内容
    private String acommentContent;
    //文章评论用户id
    private Long uid;
    //文章作者id
    private Long aticleAuthorId;
    //文章是否已读(0已读1未读)
    private Integer isreaded;
    //文章评论状态(是否被举报删除0未删除1已删除)
    private Integer acommentStatus;
    //该文章评论下的回复列表
    private List<Areply> areplyList;

    public ArticleComment() {
    }

    public Long getAcommentId() {
        return acommentId;
    }

    public void setAcommentId(Long acommentId) {
        this.acommentId = acommentId;
    }

    public String getAcomid() {
        return acomid;
    }

    public void setAcomid(String acomid) {
        this.acomid = acomid;
    }

    public String getContentId() {
        return contentId;
    }

    public void setContentId(String contentId) {
        this.contentId = contentId;
    }

    public Integer getAcommentTime() {
        return acommentTime;
    }

    public void setAcommentTime(Integer acommentTime) {
        this.acommentTime = acommentTime;
    }

    public String getAcommentContent() {
        return acommentContent;
    }

    public void setAcommentContent(String acommentContent) {
        this.acommentContent = acommentContent;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public Long getAticleAuthorId() {
        return aticleAuthorId;
    }

    public void setAticleAuthorId(Long aticleAuthorId) {
        this.aticleAuthorId = aticleAuthorId;
    }

    public Integer getIsreaded() {
        return isreaded;
    }

    public void setIsreaded(Integer isreaded) {
        this.isreaded = isreaded;
    }

    public Integer getAcommentStatus() {
        return acommentStatus;
    }

    public void setAcommentStatus(Integer acommentStatus) {
        this.acommentStatus = acommentStatus;
    }

    public List<Areply> getAreplyList() {
        return areplyList;
    }

    public void setAreplyList(List<Areply> areplyList) {
        this.areplyList = areplyList;
    }

    @Override
    public String toString() {
        return "ArticleComment{" +
                "acommentId=" + acommentId +
                ", acomid='" + acomid + '\'' +
                ", contentId='" + contentId + '\'' +
                ", acommentTime=" + acommentTime +
                ", acommentContent='" + acommentContent + '\'' +
                ", uid=" + uid +
                ", aticleAuthorId=" + aticleAuthorId +
                ", isreaded=" + isreaded +
                ", acommentStatus=" + acommentStatus +
                ", areplyList=" + areplyList +
                '}';
    }
}
